<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
	<meta name="misapplication-tap-highlight" content="no"/>
	<meta name="HandheldFriendly" content="true"/>
	<meta name="MobileOptimized" content="320"/>
	<title>云达医通</title>
	<link href="../public/css/weui.min.css" rel="stylesheet" type="text/css" />
	<link href="../public/css/jquery-weui.css" rel="stylesheet" type="text/css" />
	<link href="../public/css/base.css" rel="stylesheet" type="text/css" />
	<link href="../public/css/app/detail/myMake.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- header -->
<div class="header">
	<div class="l-icon icon">
		<a href="javascript:history.back(-1);" class="black"></a>
	</div>
	<div class="title">我的预约</div>

</div>

<!-- main -->
<div class="main">
	<div class="list" id="list_data_content">
		<script id="list_data" type="text/html">
			<% for (var i = 0; i < list.length; i ++) { %>
				<div class="item">
				   <a href="#" class="info" data-key="<%= i %>">
					<div class="title">
						<div class="name">预约时间：<%= list[i].registerdate %></div>
						<div class="states">
							<span class="st-yyz">
								<% if(list[i].registerstatus=='1'){ %>
								   挂号成功
								<% } %><% else if(list[i].registerstatus=='2'){ %>
								    挂号失败
								<% } %><% else if(list[i].registerstatus=='3'){ %>
								    线上退号
								<% } %><% else if(list[i].registerstatus=='4'){ %>
								    窗口退号
								<% } %><% else if(list[i].registerstatus=='5'){ %>
								    过期退号申请中
								<% } %><% else if(list[i].registerstatus=='6'){ %>
								    过期退号
								<% } %><% else if(list[i].registerstatus=='7'){ %>
								    停诊退号
								<% } %><% else { %>
								    初始状态
								<% } %>
							</span>
						</div>
					</div>
					<div class="content">
						<p>
							就诊时间：<%= list[i].regdate %>
							<% if(list[i].reghalf=='1'){ %>
							  上午
							<% } %><% else if(list[i].reghalf=='2'){ %>
							  下午
							<% } %><% else if(list[i].reghalf=='3'){ %>
							  晚上
							<% } %><% else{ %>
							  全天
							<% } %>

						</p>
						<p>科室：<%= list[i].deptname %></p>
						<p>号别：<%= list[i].titletype %></p>
						<p>医生姓名：<%= list[i].titletype %></p>
						<p>患者姓名：<%= list[i].patientname %></p>
						<p>号数：<%= list[i].recordsequence %>号</p>
						<p>医事服务费：<%= list[i].totalfee %>元</p>
						<p>订单号：<%= list[i].regno %></p>
					</div>
				   </a>
					<div class="app">
						<% if(list[i].feestatus=='1'){ %>
						   <span class="btns"  data-key="<%= i %>">去支付</span>
						<% } %><% else if(list[i].feestatus=='2'){ %>
						   <span class="tips">已支付</span>
						<% } %><% else if(list[i].reghalf=='3'){ %>
						   <span class="tips">已退费</span>
						<% } %><% else{ %>
						   <span class="tips"> 医保已结算</span>
						<% } %>

					</div>
				</div>
			 <% } %>
		</script>
  </div>


</div>




<!-- jquery引入 -->
<script type="text/javascript" src="../public/js/jquery/jquery-2.1.4.js"></script>
<!-- weui -->
<script type="text/javascript" src="../public/js/jquery/jquery-weui.js"></script>
<script type="text/javascript" src="../public/js/jquery/template.js"></script>
<script type="text/javascript" src="../public/js/common.js"></script>
<script type="text/javascript" src="../public/js/data/detail/myMake.js"></script>
</body>
	
</html>